#include "server.h"

#include <QApplication>
#include <QThreadPool>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    // 设置线程池参数
    QThreadPool::globalInstance()->setMaxThreadCount(4);

    Server server;
    if (!server.startServer(8080)) {
        return -1;
    }
    return a.exec();
}
